package com.ht.service.impl;

import com.ht.bean.*;
import com.ht.dao.HouqingDao;
import com.ht.service.HouqingService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class HouqingServiceImpl implements HouqingService {

    @Resource
    private HouqingDao HouqingDao;


    @Override
    public List<Equipmentrepair> weixiulist() {
        return HouqingDao.weixiulist();
    }

    @Override
    public List<Map> eplist(Integer startIndex, Integer pageSize, Equipmentrepair equipmentrepair) {
        return HouqingDao.eplist(startIndex,pageSize,equipmentrepair);
    }

    @Override
    public int countep(Equipmentrepair equipmentrepair) {
        return HouqingDao.countep(equipmentrepair);
    }

    @Override
    public boolean weixiuadd(Equipmentrepair equipmentrepair) {
        return HouqingDao.weixiuadd(equipmentrepair);
    }

    @Override
    public boolean weixiudel(String equipmentId) {
        return HouqingDao.weixiudel(equipmentId);
    }

    @Override
    public Equipmentrepair weixiusel(String equipmentId) {
        return HouqingDao.weixiusel(equipmentId);
    }

    @Override
    public boolean weixiuupd(Equipmentrepair equipmentrepair) {
        return HouqingDao.weixiuupd(equipmentrepair);
    }

    //维修管理结束时间
    @Override
    public boolean weixiushijian(Equipmentrepair equipmentrepair) {
        return HouqingDao.weixiushijian(equipmentrepair);
    }


    @Override
    public List<Studentclass> classlist() { return HouqingDao.classlist(); }


    @Override
    public List<Student> listsd() {
        return HouqingDao.listsd();
    }

    @Override
    public List<Dep> deplist() {
        return HouqingDao.deplist();
    }


    //楼栋维护+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    @Override
    public List<Map> loudonglist(Integer startIndex, Integer pageSize, Studentfloor studentfloor) {
        return HouqingDao.loudonglist(startIndex,pageSize,studentfloor);
    }

    @Override
    public int loudongcount(Studentfloor studentfloor) {
        return HouqingDao.loudongcount(studentfloor);
    }

    @Override
    public boolean loudongadd(Studentfloor studentfloor) {
        return HouqingDao.loudongadd(studentfloor);
    }

    @Override
    public boolean loudongdel(String floorId) {
        return HouqingDao.loudongdel(floorId);
    }

    @Override
    public Studentfloor studentfloor(String floorId) {
        return HouqingDao.studentfloor(floorId);
    }

    @Override
    public boolean loudongupd(Studentfloor studentfloor) {
        return HouqingDao.loudongupd(studentfloor);
    }



    //宿舍管理↓↓↓↓↓↓↓↓↓↓↓↓+++++----------+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    @Override
    public List<Map> sushelist(Integer startIndex, Integer pageSize, Studenthuor studenthuor) {
        return HouqingDao.sushelist(startIndex,pageSize,studenthuor);
    }

    @Override
    public int sushecount(Studenthuor studenthuor) {
        return HouqingDao.sushecount(studenthuor);
    }

    @Override
    public boolean susheadd(Studenthuor studenthuor) {
        return HouqingDao.susheadd(studenthuor);
    }

    @Override
    public boolean sushedel(String huorId) {
        return HouqingDao.sushedel(huorId);
    }

    @Override
    public Studenthuor studenthuor(String huorId) {
        return HouqingDao.studenthuor(huorId);
    }

    @Override
    public boolean susheupd(Studenthuor studenthuor) {
        return HouqingDao.susheupd(studenthuor);
    }

    @Override
    public List<Studentfloor> sflist() {
        return HouqingDao.sflist();
    }

    @Override
    public Studenthuor sushesel(String huorId) {
        return HouqingDao.sushesel(huorId);
    }


}
